<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"C:\Program\www\newxiangxin\public/../application/admin\view\news\lunbo.html";i:1533174207;s:68:"C:\Program\www\newxiangxin\application\admin\view\Public\public.html";i:1532083269;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
<title>会员列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/static/admin/mo/style/adminStyle.css" rel="stylesheet" type="text/css" />
<script src="/static/admin/mo/js/jquery.js"></script>
<script src="/static/admin/mo/js/public.js"></script>

</head>
<body>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i></i><em>轮播图列表</em></span>
    <span class="modular fr"><a href="/adminnews/addlunbo" class="pt-link-btn">+添加轮播图</a></span>
  </div>
  <table class="list-style Interlaced">
   <tr>
    <th>ID编号</th>
    <th>缩略图</th>
    <th>状态</th>
    <th>标题</th>
    <th>操作</th>
   </tr>
   
    
   <?php if(is_array($lunbo) || $lunbo instanceof \think\Collection || $lunbo instanceof \think\Paginator): if( count($lunbo)==0 ) : echo "" ;else: foreach($lunbo as $key=>$rows): ?>
   <tr>
    <td class="center pic-area">
     <span>
   <?php echo $rows['id']; ?>
     </span>
    </td>
    <td class="center pic-area"><img src="/uploads/<?php echo $rows['pic']; ?>" class="thumbnail"/></td>
    <td class="center pic-area">
     <?php if($rows['status']==1): ?>使用<?php else: ?>禁用<?php endif; ?>
    </td>
    <td class="center pic-area"><?php echo $rows['title']; ?></td>
    <td class="center pic-area">
     <a href="/adminnews/editlunbo/id/<?php echo $rows['id']; ?>" title="编辑"><img src="/static/admin/mo/images/icon_edit.gif"/></a>
     <a href="javascript:void(0);" onclick="bin(this)" id="<?php echo $rows['id']; ?>" title="删除"><img src="/static/admin/mo/images/icon_drop.gif"/></a>
    </td>
   </tr>
  <?php endforeach; endif; else: echo "" ;endif; ?>
  </table>
 </div>
</body>
</html>
<script> 
function bin(ob){
  var id=ob.id;
  var ss=confirm('确定要删除?');
  if(ss){
    $.get("/adminnews/deletelunbo",{id:id},function(data){
       if(data){
        alert('删除成功');
        location.href="/adminnews/lunbo";
       }else{
        alert('删除失败');
        location.href="/adminnews/lunbo";
       }
    })
  }
}       
</script>  